<?php
global $_RQ,$_AR;
//判断是否来自场景体,底部菜单不变
if($_RQ['plugin_name']){
	$this->session('plugin_name',$_RQ['plugin_name']);
}
if($_RQ['is_access'] && $_RQ['action']=='index'){
	$_SESSION['onemerchid']=0;
	$this->setting=$this->plugin_setting('basic');
}elseif($_RQ['is_access'] && ($_RQ['onemerchid'] || $_RQ['merchid'])){
	if($_RQ['onemerchid'] || $_RQ['merchid']){
		$_SESSION['onemerchid']=$_RQ['onemerchid']?:$_RQ['merchid'];
	}
	$this->setting=$this->plugin_setting('basic'.$_SESSION['onemerchid']);
}
$_SESSION['onemerchid']=$_SESSION['onemerchid']?:0;
$_SESSION['ocreateurl']='jy_nongfee/order.create//';
$_SESSION['merchshop']='jy_nongfee/merchshop//';
$return['onemerchid']=$_SESSION['onemerchid'];
$return['pluginset']=$this->setting;
$return['footernav']=$return['pluginset']['footernav'];
$return['pluginset']['cb_title']=$return['pluginset']['cb_title']?:'金币';
$return['pluginset']['cd_title']=$return['pluginset']['cd_title']?:'茶豆';
$return['pluginset']['db_title']=$return['pluginset']['db_title']?:'茶果';
$return['pluginset']['y_title']=$return['pluginset']['y_title']?:'期';
$return['pluginset']['c_title']=$return['pluginset']['c_title']?:'庄园';
$sharelink='jy_nongfee/index//fromuser='.$_SESSION['uid'];
$return['sharedata']=array(
			'title'=>$this->setting['share_title']?:'积分理财-在线抢购',
			'desc'=>$this->setting['share_desc']?:'积分理财，多倍获利！',
			'link'=>custom_url($sharelink,true),
			'imgUrl'=>ATTACHMENT_URL.$return['pluginset']['logo']
);
?>